package com.ht.shortlink.project.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties("short-link.goto-domain.white-list")
@Data
public class GotoDomainWhiteListConfiguration {
    /**
     *  是否开启跳转原始域名白名单校验功能
     */
    public Boolean enable;

    /**
     *  跳转原始域名白名单名字集合
     */
    public String names;

    /**
     *  可跳转的域名集合
     */
    public List<String> details;
}
